<template>
    <div>
        <van-nav-bar title="获取assets里的图片" fixed placeholder left-arrow @click-left="onClickLeft" />
        <img :src="getIcon('test.jpg')" alt="1">
    </div>
</template>

<script setup lang="ts">
import { getIcon } from '@/utils'
const onClickLeft = () => history.back();
</script>

<style scoped lang="scss">

</style>